package com.guozcc.gateway.utils;

/**
 * 网关错误码定义
 */
public enum GatewayStatus {

    TRADE_SUCCESS("00000","success"),
    REQUEST_BODY_NULL_EXCEPTION("99999","BODY空"),
    FORWORD_ROUTE_EXCEPTION("99999","找不到相应微服务"),
    REQUEST_TRADECODE_EXCEPTION("99999","请求路由不存在"),
    DEFAULT_EXCEPTION("99999","服务未知异常"),
    SENTINEL_EXCEPTION("99999","Sentinel拦截");
	
	
    private final String errcode;
    private final String errmsg;

    private GatewayStatus(String errcode, String errmsg) {
        this.errcode = errcode;
        this.errmsg = errmsg;
    }

    public String errcode() {
        return this.errcode;
    }

    public String errmsg() {
        return this.errmsg;
    }
}
